package com.test.demo.service.Imp;

import com.test.demo.dao.RepaymentMapper;
import com.test.demo.model.Repayment;
import com.test.demo.service.RepaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 作者：孙志颖
 */
@Service
public class RepaymentServiceImp implements RepaymentService {
@Autowired
private RepaymentMapper repaymentMapper;
    @Override
    public List<Repayment> getRId() {
        System.out.println("执行SQL语句");
        return repaymentMapper.getRId();
    }

    @Override
    public Repayment selectByPrimaryKey(Integer rid) {
        return repaymentMapper.selectByPrimaryKey(rid);
    }

    //获取全部信息
    @Override
    public List<Repayment> getAlls() {
        return repaymentMapper.getAlls();
    }

    @Override
    public int insertRepayment(Repayment repaymentmodel) {
        return repaymentMapper.insertRepayment(repaymentmodel);
    }

    @Override
    public int delRepayment(Integer rid) {
        return repaymentMapper.delRepayment(rid);
    }

    @Override
    public int updateRepayment(Repayment repaymentmodel) {
        return repaymentMapper.updateRepayment(repaymentmodel);
    }
}
